<?php
$email = array(
	'name'	=> 'email',
	'id'	=> 'email',
	'size'	=> 30,
	'value' => set_value('email')
);

$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30
);

$confirmation_code = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8
);
?>

<fieldset>
	<legend>WEB Login</legend>
	<?php echo form_open($this->uri->uri_string())?>
	
	<dl>	
		<dt><?php echo form_label('Email', $email['id']);?></dt>
		<dd>
			<?php echo form_input($email)?>
	    	<?php echo form_error($email['name']); ?>
		</dd>
	
	  <dt><?php echo form_label('Password', $password['id']);?></dt>
		<dd>
			<?php echo form_password($password)?>
	    	<?php echo form_error($password['name']); ?>
		</dd>
		
		<?php if ($show_captcha): ?>
			<dt>Introduce el codigo exactamente como aparece. No hay ceros.</dt>
			<dd><?php echo $this->redux_auth->get_captcha_image(); ?></dd>
			<dt><?php echo form_label("Captcha", $confirmation_code['id']);?></dt>
			<dd>
				<?php echo form_input($confirmation_code);?>
				<?php echo form_error($confirmation_code['name']); ?>
			</dd>
		<?php endif;?>
		
		<dt>&nbsp;</dt>
		<dd><?php echo form_submit('login','Login');?></dd>
	</dl>
	
	<?php echo form_close()?>
</fieldset>